import React,{Suspense} from 'react'
import {useRoutes} from 'react-router-dom'
import router from './router'


export default function App() {
  return(
    <Suspense fallback={<div style={{fontSize:'50px',color:'red'}}>组件正在加载中，请耐心等待................................</div>}>
      {useRoutes(router)}
    </Suspense>
  )
}

